<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a href="/students/new">AddStudent</a>
    <table>
        <tr>
            <th>id</th>
            <th>name</th>
            <th>gender</th>
            <th>age</th>
            <th>操作</th>
        </tr>

        {{each students}}
        <tr>
            <td>{{$value.id}}</td>
            <td>{{$value.name}}</td>
            <td>{{$value.gender}}</td>
            <td>{{$value.age}}</td>
            <td>
                <a href="/students/edit?id={{$value.id}}">编辑</a>
                <a href="/students/delete?id={{$value.id}}">删除</a>
            </td>
        </tr>
        {{/each}}
    </table>
</body>
</html>